package com.letoken.platform.repo.admin.req.menu;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author wyl

 * @date 2022/12/14 12:11
 * @Version 1.0
 */
@Data
@ApiModel(value = "新增菜单请求对象", description = "新增菜单请求对象")
public class AddAdminMenuReq {

    @NotBlank(message = "菜单名称不能为空")
    @ApiModelProperty(name = "name", value = "菜单名称", example = "用户管理")
    private String name;

    @NotBlank(message = "uri不能为空")
    @ApiModelProperty("uri")
    private String uri;

    @ApiModelProperty("描述")
    private String description;

    @ApiModelProperty("级别 1-菜单 2-页面 3-按钮")
    private Integer level;
}
